<template>
  <div>
    <button @click="isShow = !isShow"> 显示/隐藏</button>
    <transition 
    name="animate__animated animate__bounce"
    enter-active-class="animate__backInLeft"
    leave-active-class="animate__backOutLeft">
      <h1 v-show=isShow>Hello world</h1>
    </transition>
    
  </div>
</template>

<script>
import 'animate.css'
export default {
  name: 'HelloWorld',
  data(){
    return {
      isShow: true
    }
  },
}
</script>
<style lang="less" scoped>
h1{
  background-color: orange;
}
</style>

